GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a7d869...2b73a7 )
by Stefano
02:46
created

clean.js ➔ make_red   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
var program = require('commander');
2
var shell = require('shelljs');
3
var chalk = require('chalk');
4
var emoji = require('node-emoji');
5
var co = require('co');
6
var prompt = require('co-prompt');
7
var rimraf = require('rimraf');
8
9
var enviroment = process.env.npm_package_config_enviroment;
10
11
shell.mkdir('-p',['applications/assets/icons']);
12
13
process.stdout.write(chalk.gray(emoji.emojify("[  ] Clean Server Vagrant ("+ enviroment +").\n")));
14
15
if ( enviroment === 'dev' ){
16
17
  // SSH
18
  rimraf.sync('server/plays/ssh/*.key');
19
  rimraf.sync('server/plays/ssh/*.pub');
20
21
  // SSL
22
  rimraf.sync('server/plays/ssl/*.key');
23
  rimraf.sync('server/plays/ssl/*.crt');
24
  rimraf.sync('server/plays/ssl/*.pem');
25
26
  // ANSIBLE ROLE
27
  rimraf.sync('server/roles/external/*');
28
29
  shell.cd('server');
30
31
  destroyVagrantServer = shell.exec('vagrant destroy -f');
0 ignored issues
show
Bug introduced by
The variable destroyVagrantServer seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.destroyVagrantServer.
Loading history...
32
33
  if ( destroyVagrantServer.code !== 0 ){
34
    process.stderr.write(chalk.bgRed.white(emoji.emojify("[:heavy_multiplication_x: ] Errore vagrant destroy")));
35
    process.stderr.write(chalk.gray(destroyVagrantServer.stdout+"\n"));
36
    process.stderr.write(chalk.red(destroyVagrantServer.stderr+"\n"));
37
    process.exit(1);
0 ignored issues
show
Compatibility Debugging Code Best Practice introduced by
Use of process.exit() is discouraged as it will potentially stop the complete node.js application. Consider quitting gracefully instead by throwing an Error.
Loading history...
38
  }
39
40
  shell.cd('..');
41
42
  process.stdout.write(chalk.bgGreen.black(emoji.emojify('[:heavy_check_mark: ] Clean server COMPLETED.' + "\n")));
43
44
} else {
45
46
    process.stdout.write(chalk.yellow(emoji.emojify("[:raised_hand: ] Ambiente non gestito ("+ enviroment +").\n")));
47
}
48